﻿using EventBus.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ProductWebApi.IntegratedEventService
{
    public class DeductionStockEvent: IEvent
    {
        public string UniqueCode { get; set; }
        public List<SkuEvent> SkuList { get; set; }
        public string AggregateRootId { get; set; }
    }

    public class SkuEvent
    {
        /// <summary>
        /// Spu名称
        /// </summary>
        public string SpuName { get; set; }

        /// <summary>
        /// SkuId
        /// </summary>
        public string SkuId { get; set; }

        /// <summary>
        /// sku数量
        /// </summary>
        public int SkuQuantity { get; set; }

        /// <summary>
        /// sku价格
        /// </summary>
        public decimal SkuPrice { get; set; }
    }
}
